package com.tzjw.marketweixin.pojo.bean;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;


@Data
/**
 *  实体类上添加注解忽略未知字段
 *  场景说明：
 *  前端request中的json数据比实体类多个一个daysType字段
 *  暂时通过忽略该字段解决jsonStr转bean
 *  @author hayden
 *  @since 2023/09/03 17：30
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class MarketCoupon {
    private Integer id;

    private String name;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String desc;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String tag;

    private Integer total;

    private BigDecimal discount;

    private BigDecimal min;

    private Short limit;

    private Short type;

    private Short status;

    private Short goodsType;

    private String[] goodsValue;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String code;

    private Short timeType;

    private Short days;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Date startTime;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Date endTime;

    private Date addTime;

    private Date updateTime;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Boolean deleted;

}
